package pattern.factory;

public class TestNotebook {
    public static void main(String[] args) {
//        Notebook notebook = SimpleNotebookFactory.createNoteBook("dell");
//        notebook.show();
//
//        Notebook notebook1 = SimpleNotebookFactory.createNoteBook("lenovo");
//        notebook1.show();

        NotebookFactory factory = new DellNotebookFactory();
        Notebook notebook = factory.createNotebook();
        notebook.show();

        NotebookFactory factory1 = new LenovoNotebookFactory();
        Notebook notebook1 = factory1.createNotebook();
        notebook1.show();

        NotebookFactory factory2 = new AsusNotebookFactory();
        Notebook notebook2 = factory2.createNotebook();
        notebook2.show();
    }
}
